package org.apache.servicecomb.samples.practise.houserush.realestate.api;

import org.apache.servicecomb.samples.practise.houserush.realestate.entity.Building;

import java.util.List;

public interface BuildingApi {
    Building createBuilding(int realestateId, Building building);
    Building findBuilding(int id);
    Building updateBuilding(int id, Building building);
    void removeBuilding(int id);
    List<Building> indexBuildings(int realestateId);
}
